<style>
    .form-search .layui-form-label {
         display: block;
    }
</style>
<form  class="layui-form layui-form-pane form-search" action="/pcs/porter/service/index" onsubmit="return false" method="get" autocomplete="off">
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-inline">
            <input name="name" th:value="${name}" placeholder="请输入姓名" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-inline">
            <select name="sex" >
                <option value="">全部</option>
                <th:block th:if="${sex==0}">
                    <option value="1">男</option>
                    <option value="2">女</option>
                </th:block>
                <th:block th:if="${sex==1}">
                    <option value="1" selected>男</option>
                    <option value="2">女</option>
                </th:block>
                <th:block th:if="${sex==2}">
                    <option value="1">男</option>
                    <option value="2" selected>女</option>
                </th:block>
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-inline">
            <input name="phone" th:value="${phone}" placeholder="请输入手机号" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">服务状态</label>
        <div class="layui-input-inline">
            <select name="serviceStatus" >
                <option value="">全部</option>
                <th:block th:if="${serviceStatus==0}">
                    <option value="1">可服务</option>
                    <option value="2">服务中</option>
                </th:block>
                <th:block th:if="${serviceStatus==1}">
                    <option value="1" selected>可服务</option>
                    <option value="2">服务中</option>
                </th:block>
                <th:block th:if="${serviceStatus==2}">
                    <option value="1">可服务</option>
                    <option value="2" selected>服务中</option>
                </th:block>
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        <button type="reset" class="layui-btn layui-btn-primary" onclick="window.location.href ='/#/pcs/porter/service/index?spm=m-147-152-153' ">重置</button>
    </div>
</form>